package org.hxuhao.service;

import org.hxuhao.dao.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    @Transactional
    public void getById() {
        userMapper.getById(1L);
        userMapper.getById(2L);
        userMapper.getById(3L);
        userMapper.getById(4L);
    }

}
